<%@ page language="java" contentType="text/html; charset=UTF-8"
 pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions"  prefix="fn"%>
<script type="text/javascript" src="js/jquery-1.11.3.min.js"></script>

<html>

    <head>

    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    
    <title>个人资料</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
	
	<link href="bootstrap/css/bootstrap.min.css" rel="stylesheet">
	
	<style type="text/css">
		.img{
			height: 40;
		}
		.font{
			color:white;
			font-size: 17px;
		}
		.font1{
			color:white;
			font-size: 30px;
		}
		.round {
		   padding:10px; width:300px; height:50px;
		   border: 0px solid #dedede;
		   -moz-border-radius: 5px;      /* Gecko browsers */
		   -webkit-border-radius: 5px;   /* Webkit browsers */
		   border-radius:5px;            /* W3C syntax */
}
	</style>
	<script type="text/javascript">
		function next(){
			var address=document.getElementById("address").value;
			window.location.href="details.jsp?address="+address;
		}
		function is_return(){
  			window.location.href="index.jsp";
  		}
	</script>
  </head>
  
  <body>
  
  	<div class="container-fluid">
      <div class="row">
        
        	<table border="1" align="center" height="100%">
        	
    	<tr height="40px" bgcolor="#333B46">	
    		<td align="left" width="500px;"><font class="font1"><span onclick="is_return()">&nbsp;&nbsp;<img src="img/2006707973.jpg" height="20px;"/></span></font></td>
    		<td  align="left" width="600px;"><font class="font">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;信息修改</font>
    		<td align="right"  width="200px;"><font class="font1"><span onclick="is_return()">&nbsp;&nbsp;<img src="img/651682395.jpg" height="20px;" align="top"/>&nbsp;</span></font></td>
    		</td>	
    	</tr>
    	
    	<tr height="160px" bgcolor="#F2F3F4" align="center" c>
    		<td colspan="3">
			<c:forEach var="v" items="${products}">
			<img alt="" src="${v.yimageurl}" width="100" height="120">
			</c:forEach>
			</td>
    	</tr>
    	<tr height="200px" align="center">
    	<td align="right">
    	姓名：<br><br>
    	性别：<br><br>
    	电话：<br><br>
    	小区地址:<br><br>
    	单元楼：<br><br>
    	有效时间：<br><br>
    	用户状态：
    	</td>
    	<td align="left">
    	<c:forEach var="v" items="${products}">
    	<input type="text"id="nn"value="${v.yname}" style="width: 100px;" ><br><br>
    	${v.ysex}<br><br>
    	${v.yphone}<br><br>
    	${v.yaddress}<br><br><br>
    	<select id ="option" name="option">
	    			<option value="0">全部</option>
	    			<c:forEach var="u" items="${unitdoor}">
						<option value=${u.number}>${u.number}</option>
	    			</c:forEach>
	    </select><br> <br> 			
    	${v.state}<br><br>
    	<c:if test="${fn:contains(v.yindate,'1') }">
        					<img alt="" src="img/15.jpg">
        				</c:if>
        				<c:if test="${fn:contains(v.yindate,'0') }">
        					<img alt="" src="img/14.jpg">
        				</c:if>
        				<br><br>
        </c:forEach>
       	</td>			 		
		</td>
		<td></td>
    	</tr>
		<tr>
			<td colspan="3" align="center">
			<c:forEach var="v" items="${products}">
				<button style="width: 80px; height:40px; background-color:#27a2f0; color: white; font-size: 12px;" onclick="disable(${v.yid},'${v.yaddress}')" id="addbmd"  class="round">保存1</button>
			</c:forEach>
			</td>
		</tr>

    </table>
      </div>
    </div>
  </body>
</html>
